package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 * @author hua
 * @since 2023-04-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_stock_pick_up_rule")
public class StockPickUpRuleDo extends Model<StockPickUpRuleDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("storage_id")
    private Long storageId;

    @TableField("max_number")
    private Integer maxNumber;

    /**
     * 物流公司
     */
    @TableField("track")
    private int track;

    /**
     * 客户
     */
    @TableField("company")
    private int company;

    @TableField("area")
    private int area;

    /**
     * 包裹类型
     */
    @TableField("package_type")
    private int packageType;

    /**
     * sku(一单一件)
     */
    @TableField("sku")
    private int sku;

    /**
     * 默认库位单独处理(一单一件)
     */
    @TableField("default_rack")
    private int defaultRack;

    /**
     * 先进先出(一单一件)
     */
    @TableField("out_type")
    private int outType;

    /**
     * 大小件(一单一件)
     */
    @TableField("size_type")
    private int sizeType;

    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;

    /**
     * 生成波次规则: 0按间隔时间 1按订单数量 2 按截至时间
     */
    @TableField("generate_type")
    private Integer generateType;

    @TableField("interval_time")
    private Integer intervalTime;

    @TableField("dead_time")
    private String deadTime;

    @TableField("order_count")
    private Integer orderCount;

    @TableField("create_time")
    private Date createTime;

    @TableField("create_by")
    private Long createBy;

    @TableField("mode_type")
    private Integer modelType;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
